USB operation Mode

This feature is supported only on FX series readers. The FX Reader’s USB connection can be configured to be either ActiveSync or Network. While in ActiveSync mode, the ActiveSync application running on host gets connected as soon as the USB cable connected to the Reader is plugged in to the host. While in Network mode, the Reader and the host gets connected as a virtual network, reader being 169.254.10.1. This acts as a fallback mechanism to login to the Reader’s web console to know its primary IP. The class USBOperationMode can be used for getting or setting this information.

try {

    // Get USB Mode

    USBOperationMode usbOpMode = rm.getUSBOperationMode();

    System.out.println("Current USB Operation Mode is      : " + usbOpMode.getMode().toString()

            + "AllowLLRPConnectionOverride = " + usbOpMode.getAllowLLRPConnectionOverride());

 

    // Set USB Mode

    USBOperationMode newUSBOpMode = new USBOperationMode(USB_OPERATION_MODE.NETWORK, true);

    rm.setUSBOperationMode(newUSBOpMode);

 

} catch (OperationFailureException ex) {

    System.out.println("USB Operation Mode failed " + ex.getStatusDescription() + " " + ex.getVendorMessage());

} catch (InvalidUsageException ex) {

}